<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/WEB-INF/jsp/commons/taglibs.jsp" %>
<!DOCTYPE html>
<html>
<head>
    <%@ include file="/WEB-INF/jsp/commons/meta.jsp" %>
    <title>用户登陆</title>
    <style>
        body, html {
            height: 100%;
        }

        form {
            vertical-align: middle;
            margin: auto;
        }

        #footer {
            text-align: center;
        }
    </style>
</head>
<body>
<div data-role="header" data-form="ui-bar-a" data-theme="a" data-swatch="a" class="ui-header ui-bar-a">
    <a href="${ctx }/" data-role="button" data-theme="c"
       data-inline="true">积分</a>

    <h1 tabindex="0" class="ui-title">艾唯积分平台</h1>
    <a href="${ctx }/login.htm" data-role="button">登录</a>
</div>
<div role="main" data-role="content" data-form="ui-body-a" data-theme="a" class="ui-content ui-body-a">
    <form action="${ctx }/login.htm" method="post"  data-ajax="false" class="ui-body ui-body-a ui-corner-all">
        <table style="width: 100%">
            <c:if test="${msg != null }">
                <tr>
                    <td></td>
                    <td style="color: red;text-align: center;">${msg }</td>
                </tr>
            </c:if>
            <tr>
                <th>
                    <label>账号：</label>
                </th>
                <td><input type="text" name="mobile" placeholder="请输入用户名(手机号)" value="${mobile }" data-form="ui-body-a"
                           class="input ui-input-text ui-body-a"></td>
            </tr>
            <tr>
                <th>
                    <label>密码：</label>
                </th>
                <td><input type="password" name="password" placeholder="请输入密码" data-form="ui-body-a"
                           class="input ui-input-text ui-body-a"></td>
            </tr>
            <tr>
                <td></td>
                <td><input type="submit" value="登录"></td>
            </tr>
        </table>
    </form>
</div>
<%@ include file="/WEB-INF/jsp/commons/footer.jsp" %>
</body>
</html>